/**
 * @summary 频道请求模块
 */
import req from '@/utils/request';
import * as URL from '@/constants/api';

export function getChannelList() {
  return req({
    url: URL.CHANNEL_LIST,
  })
  // 处理成功
    .then(res => res.data.data.channels)
    // 处理失败
    .catch(() => [])
}
